(self.webpackChunk=self.webpackChunk||[]).push([[143],{6760:(t,e,n)=>{var i={"./hello_controller.js":6926};function r(t){var e=a(t);return n(e)}function a(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=a,t.exports=r,r.id=6760},8205:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i={}},6926:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});n(8304),n(489),n(1539),n(2419),n(8011),n(9070),n(2526),n(1817),n(2165),n(6992),n(8783),n(3948);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n{"use strict";n(7327),n(1539),n(7042),n(8309),n(1038),n(8783),n(4916),n(2526),n(1817),n(2165),n(6992),n(3948),n(9753),(0,n(2192).x)(n(6760));var i=n(538),r=n(5706),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quiz-container"},[t._l(t.quizzes,(function(e,i){return n("div",{key:i},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[t.questionCount===i+1?n("div",{staticClass:"quiz-transition"},[n("div",{staticClass:"quiz-question"},[t._v("\n "+t._s(e.question)+"\n ")]),t._v(" "),n("div",{staticClass:"quiz-answers"},t._l(e.answers,(function(e,i){return n("div",{key:i,staticClass:"quiz-answers__button",on:{click:function(e){t.questionCount++}}},[t._v("\n "+t._s(e.text)+"\n ")])})),0)]):t._e()])],1)})),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.questionCount>t.quizzes.length?n("div",{staticClass:"quiz-loader"},[n("div",{staticClass:"font-bold text-20 md:text-22 mb-8 md:mb-12"},[t._v("Please Wait…")]),t._v(" "),n("div",{staticClass:"dot-flashing"})]):t._e()])],2)};a._withStripped=!0;n(2564),n(9254),n(2479),n(9720),n(4603),n(9714),n(5306);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(a.push(i.value),!e||a.length!==e);o=!0);}catch(t){s=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nthis.quizzes.length&&setTimeout((function(){"sameTab"===e.quizzes[0].url.redirectAction?window.location.href=l(e.quizzes[0].url.link):window.open(l(e.quizzes[0].url.link))}),2e3)}},beforeMount:function(){"null"!==this.quizData&&"undefined"!==this.quizData&&(this.quizzes=Object.values(JSON.parse(this.quizData)))}};var c=n(1900),d=(0,c.Z)(u,a,[],!1,null,null,null);d.options.__file="assets/js/components/MultiStepQuiz.vue";const p=d.exports;var m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.jsonErrors?t._e():n("div",{ref:"quiz",staticClass:"multi-step-quiz-v2"},[t._l(t.parsedQuizData.questions,(function(e,i){return[n("transition",{key:i,attrs:{name:"fade",mode:"out-in"}},[t.questionCount!==i+1||t.loadingFinished?t._e():n("div",[n("render-html",{attrs:{html:e.content}}),t._v(" "),n("div",{staticClass:"quiz-answers"},t._l(e.answers,(function(e,i){return n("div",{key:i,staticClass:"quiz-answers__button",on:{click:function(n){return t.answerClick(e)}}},[t._v("\n "+t._s(e.content)+"\n ")])})),0)],1)])]})),t._v(" "),!t.loadingFinished&&t.displayLoader?n("loader-with-text",{attrs:{"start-loader":t.startLoader,"loader-texts":t.loaderTexts},on:{"loader-finished":t.loaderFinished}}):t.loadingFinished||t.displayLoader?t._e():[n("SimpleLoader",{attrs:{"start-loader":t.startLoader},on:{"loader-finished":t.loaderFinished}})],t._v(" "),t.loadingFinished?[n("div",{staticClass:"destination__wrapper"},[n("render-html",{attrs:{html:t.finalStepContent.content}}),t._v(" "),t.finalStepContent.displayResetButton?n("div",{staticClass:"reset-btn-wrapper"},[n("a",{staticClass:"button button--short button--short--green reset-btn",on:{click:t.resetQuiz}},[n("span",[t._v("START OVER")])])]):t._e()],1)]:t._e()],2)};m._withStripped=!0;var h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.startLoader?n("div",{staticClass:"quiz-loader"},[t._m(0),t._v(" "),n("div",{staticClass:"quiz-loader__text-container"},[t._v("\n "+t._s(t.loaderTexts[t.loadingMessagesIndex])+"\n ")])]):t._e()};h._withStripped=!0;const v={name:"LoaderWithText",props:{loaderTexts:{type:Array,required:!0},startLoader:{type:Boolean,required:!0,default:!1}},emits:["loader-finished"],data:function(){return{loadingMessagesIndex:0,interval:null}},watch:{startLoader:function(t){var e=this;!0===t&&(this.interval=setInterval((function(){e.loadingMessagesIndex');case"date":return'');default:return"Shortcode Not Implemented"}}))},_=function(){var t=this.$createElement;return(this._self._c||t)("span",{ref:"wrapper"})};_._withStripped=!0;const x={props:{html:{type:String,default:""}},mounted:function(){this.html&&this.renderContent(this.html)},methods:{renderContent:function(t){var e=i.Z.compile(""+t+"");new i.Z({el:this.$refs.wrapper,render:e.render,staticRenderFns:e.staticRenderFns}).$mount()}}};var L=(0,c.Z)(x,_,[],!1,null,null,null);L.options.__file="assets/js/components/RenderHtml.vue";const k=L.exports,D={name:"MultiStepQuizV2",components:{LoaderWithText:C,RenderHtml:k,SimpleLoader:b},props:{quizData:{type:String,default:""},displayLoader:{type:Boolean,default:!0}},data:function(){return{jsonErrors:!1,parsedQuizData:null,questionCount:1,loaderTexts:["Reviewing Your Answers…","Checking Available Programs…","Confirming Your Eligibility…"],loadingFinished:!1,finalStepContent:null}},computed:{startLoader:function(){return this.questionCount>this.parsedQuizData.questions.length},finalView:function(){return this.loadingFinished&&this.questionCount>this.parsedQuizData.questions.length}},watch:{finalView:function(t){t&&(document.dispatchEvent(new CustomEvent("loadGeo",{bubbles:!0})),document.dispatchEvent(new CustomEvent("loadDate",{bubbles:!0})),this.finalStepContent===this.parsedQuizData.destinations.success&&this.handleSuccessActions())}},beforeMount:function(){try{this.parsedQuizData=this.quizData?JSON.parse(this.quizData,(function(t,e){if("content"===t){var n=window.atob(e);return y(n)}return e})):"",this.finalStepContent=this.parsedQuizData.destinations.success}catch(t){console.error(t),this.jsonErrors=!0}},methods:{handleSuccessActions:function(){var t,e;if(t=this.$refs.quiz,e=t.getBoundingClientRect().top+window.scrollY,window.scroll({top:e-50,behavior:"smooth"}),this.finalStepContent.pixelCode)try{var n=function(t){var e=document.createElement("script"),n=document.createTextNode(t);return e.appendChild(n),e}(this.finalStepContent.pixelCode.replace("